package com.marsoft.test.mapper;

import com.marsoft.test.entity.EffectContEntity;
import com.marsoft.test.entity.YaPinManageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface EffectContMapper {
    /**
      *@author:he
      *@Date:2021/5/13 10:25
      *@Description:有效的一般担保合同
      */
    public List<EffectContEntity> getEffectCont(Integer id);

    public String getName(Integer id);

    public List<EffectContEntity> getEffectContByState(@Param("id") Integer id, @Param("guarantyContractStatus") Integer guarantyContractStatus);
    
    /**
      *@author:he
      *@Date:2021/5/19 13:40
      *@Description:新增抵押物
      */
    public int addYP(@Param("tYaPinManageEntity") YaPinManageEntity tYaPinManageEntity);

    /**
      *@author:he
      *@Date:2021/5/20 17:35
      *@Description:抵押物详情信息修改
      */
    public int updateYP(@Param("tYaPinManageEntity") YaPinManageEntity tYaPinManageEntity);

    /**
      *@author:he
      *@Date:2021/5/21 10:08
      *@Description:删除抵押物信息
      */
    public int deleteYP(@Param("tYaPinManageEntity") YaPinManageEntity tYaPinManageEntity);
}
